#######
READ ME FILE
#######

This is the replication folder for:
Girard, Tyler, Andrea Lawlor, and Erin Hannah.
"Identity Politics and Trade Preferences: How the Gendered and Racialized Effects of Trade Matter."
Review of International Political Economy.

Please contact tgirard@purdue.edu

#######

The folder structure is organized into four folders:
- Data
- Figures
- Functions
- Tables

The Data folder contains both the original (uncleaned) data and the analysis (cleaned) data.

All steps of the analysis (including data cleaning) can be performed using the R script "Survey Analysis.R".

The analysis begins on Line 576 ("#### ~~~ ANALYSIS ~~~ #####"). If desired, you can load the cleaned data and continue with
the R code from that point forward.


#######


R version 4.3.0 (2023-04-21 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=English_Canada.utf8  LC_CTYPE=English_Canada.utf8    LC_MONETARY=English_Canada.utf8
[4] LC_NUMERIC=C                    LC_TIME=English_Canada.utf8

time zone: America/Winnipeg
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
 [1] ggsignif_0.6.4         marginaleffects_0.12.0 modelsummary_1.4.1     lmtest_0.9-40          zoo_1.8-12
 [6] fastDummies_1.6.3      circular_0.4-95        optiscale_1.2.2        lattice_0.21-8         modEvA_3.9.3
[11] flextable_0.9.1        table1_1.4.3           lubridate_1.9.2        forcats_1.0.0          stringr_1.5.0
[16] dplyr_1.1.2            purrr_1.0.1            readr_2.1.4            tidyr_1.3.0            tibble_3.2.1
[21] ggplot2_3.5.1          tidyverse_2.0.0        here_1.0.1

loaded via a namespace (and not attached):
  [1] rstudioapi_0.14         jsonlite_1.8.4          magrittr_2.0.3          rmarkdown_2.21
  [5] fs_1.6.2                ragg_1.2.5              vctrs_0.6.2             memoise_2.0.1
  [9] askpass_1.1             terra_1.7-29            webshot_0.5.4           rstatix_0.7.2
 [13] janitor_2.2.0           htmltools_0.5.5         usethis_2.1.6           curl_5.0.0
 [17] haven_2.5.2             broom_1.0.4             cellranger_1.1.0        Formula_1.2-5
 [21] htmlwidgets_1.6.2       cachem_1.0.8            rio_0.5.29              gt_0.9.0
 [25] uuid_1.1-0              mime_0.12               lifecycle_1.0.3         pkgconfig_2.0.3
 [29] R6_2.5.1                fastmap_1.1.1           shiny_1.7.4             snakecase_0.11.0
 [33] digest_0.6.31           colorspace_2.1-0        ps_1.7.5                rprojroot_2.0.3
 [37] pkgload_1.3.2           textshaping_0.3.6       ggpubr_0.6.0            fansi_1.0.4
 [41] timechange_0.2.0        httr_1.4.6              abind_1.4-5             compiler_4.3.0
 [45] remotes_2.4.2           fontquiver_0.2.1        withr_2.5.0             backports_1.4.1
 [49] carData_3.0-5           psych_2.3.3             pkgbuild_1.4.0          openssl_2.0.6
 [53] sessioninfo_1.2.2       gfonts_0.2.0            tools_4.3.0             foreign_0.8-84
 [57] zip_2.3.0               httpuv_1.6.11           glue_1.6.2              callr_3.7.3
 [61] nlme_3.1-162            promises_1.2.0.1        grid_4.3.0              generics_0.1.3
 [65] gtable_0.3.3            tzdb_0.4.0              data.table_1.14.8       hms_1.1.3
 [69] xml2_1.3.4              car_3.1-2               utf8_1.2.3              tables_0.9.17
 [73] pillar_1.9.0            later_1.3.1             tidyselect_1.2.0        fontLiberation_0.1.0
 [77] miniUI_0.1.1.1          knitr_1.43              fontBitstreamVera_0.1.1 svglite_2.1.1
 [81] crul_1.4.0              xfun_0.39               devtools_2.4.5          DT_0.28
 [85] stringi_1.7.12          boot_1.3-28.1           kableExtra_1.3.4        evaluate_0.21
 [89] codetools_0.2-19        httpcode_0.3.0          officer_0.6.2           gdtools_0.3.3
 [93] cli_3.6.1               xtable_1.8-4            systemfonts_1.0.4       munsell_0.5.0
 [97] processx_3.8.1          Rcpp_1.0.10             readxl_1.4.2            ggeffects_1.2.2
[101] parallel_4.3.0          ellipsis_0.3.2          prettyunits_1.1.1       profvis_0.3.8
[105] urlchecker_1.0.1        viridisLite_0.4.2       mvtnorm_1.1-3           scales_1.3.0
[109] insight_0.19.1          openxlsx_4.2.5.2        crayon_1.5.2            rlang_1.1.1
[113] rvest_1.0.3             mnormt_2.1.1
